﻿package Gameplay.Visualizer
{	
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.media.Sound;
	import flash.media.SoundChannel;

	public class AbstractVisualizer extends Sprite
	{
		protected var FSound:Sound;
		protected var FChannel:SoundChannel;
		
		public function AbstractVisualizer():void
		{
			FSound = null;			
		}
		
		public function Play():void
		{
			addEventListener(Event.ENTER_FRAME, OnEnterFrame);
		}
		
		public function Stop():void		
		{
			removeEventListener(Event.ENTER_FRAME, OnEnterFrame);			
		}
		
		public function set Sound(ASound:Sound):void
		{
			FSound = ASound;
		}
		
		public function set Channel(AChannel:SoundChannel):void
		{
			FChannel = AChannel;
		}	
		
		protected function OnEnterFrame(e:Event):void
		{
			
		}
	}	
}
